<table class="tbl" cellpadding="0" cellspacing="1">
	<tr>
		<th>User</td>
		<th>Remain</td>
		<th>Harvert time</td>
	</tr>
<?php foreach ($data as $item):?>
	<tr>		
		<td>
			<?php if (!defined('WAP_MODE')):?>
			<a onclick="window.open(this.href);return false;" href="http://www.facebook.com/profile.php?id=<?php echo $item['user_id'];?>"><img class="avatar" src="<?php echo $item['image_url'];?>" alt=""/></a>
			<?php endif?>
			<a onclick="window.open(this.href);return false;" href="http://www.facebook.com/profile.php?id=<?php echo $item['user_id'];?>"><?php echo $item['user_name'];?></a>
		</td>
		<td><?php echo $item['remain'];?></td>
		<td><?php echo date('H:i:s d/m', strtotime($item['harvert_time']));?></td>
	</tr>
<?php endforeach;?>
</table>

<style type="text/css">
	.avatar {width:32px;height:32px}
</style>